package main

import (
	"tem/global"
	"tem/router"
)

func main() {
	//全局配置初始化
	global.InitGlobal()
	//global.DB = model.InitGormDB()
	defer func() {
		if global.DB != nil {
			db, _ := global.DB.DB()
			db.Close()
		}
	}()

	router.InitRouter()

}
